package cn.kgc.client;

import cn.kgc.base.vo.OrderSpuInfoVo;
import cn.kgc.commons.vo.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Component;

import java.util.HashSet;
import java.util.Map;

/**
 * <p></p>
 *
 * @author 李孟鸠
 * @Date: 2023年01月03日9:56
 */
@Component
@Slf4j
public class PmsFeignClientImpl  implements PmsFeignClient {
    @Override
    public Result<Map<Long, OrderSpuInfoVo>> getOrderSpuInfo(HashSet<Long> spuIdSet) {
        log.error("根据spuId获得订单对应的spu信息，服务降级:{}",spuIdSet);
        return Result.error(null,"http://mall-pms/pms/spuInfo/getOrderSpuInfo",
                HttpStatus.OK.value(), "error");
    }
}
